define(['text!service/instructionsList.html', '../service/data/wiki'],
	function(viewTemplate,listJson) {
		return Piece.View.extend({
			id: 'service_instructionsList',
			render: function() {
				$(this.el).html(viewTemplate);

				Piece.View.prototype.render.call(this);
				return this;
			},

			listData:null,
			onShow: function() { 
				//write your business logic here :)
				this.listData = listJson;
				console.info(this.listData.rows);
				this.components['instructionsList'].loadListByJSONArray(this.listData.rows);

			}
		}); //view define

	});